package o;

public class fzm extends fzk {
    public static final float[] ˏ = new float[fzo.ʽ];

    static {
        for (int i = 0; i < fzo.ʽ; i++) {
            ˏ[i] = (float) Math.sin((double) (((float) i) * 1.1E-4f));
        }
    }

    public static final float ˋ(float f) {
        if (fzo.ᐝ) {
            return ˊ(f);
        }
        return (float) StrictMath.sin((double) f);
    }

    public static final float ˊ(float f) {
        float f2 = f % 6.2831855f;
        if (f2 < 0.0f) {
            f2 += 6.2831855f;
        }
        if (!fzo.ʻ) {
            return ˏ[ॱॱ(f2 / 1.1E-4f) % fzo.ʽ];
        }
        f2 /= 1.1E-4f;
        int i = (int) f2;
        if (i != 0) {
            f2 %= (float) i;
        }
        if (i == fzo.ʽ - 1) {
            return (f2 * ˏ[0]) + (ˏ[i] * (1.0f - f2));
        }
        return (f2 * ˏ[i + 1]) + ((1.0f - f2) * ˏ[i]);
    }

    public static final float ˎ(float f) {
        if (fzo.ᐝ) {
            return ˊ(1.5707964f - f);
        }
        return (float) StrictMath.cos((double) f);
    }

    public static final float ˏ(float f) {
        if (!fzo.ˏ) {
            return StrictMath.abs(f);
        }
        if (f > 0.0f) {
            return f;
        }
        return -f;
    }

    public static final int ॱ(float f) {
        if (fzo.ॱ) {
            return ᐝ(f);
        }
        return (int) StrictMath.floor((double) f);
    }

    public static final int ᐝ(float f) {
        int i = (int) f;
        if (f < ((float) i)) {
            return i - 1;
        }
        return i;
    }

    public static final int ॱॱ(float f) {
        if (fzo.ˊ) {
            return ॱ(0.5f + f);
        }
        return StrictMath.round(f);
    }

    public static final float ˎ(float f, float f2) {
        return f > f2 ? f : f2;
    }

    public static final int ॱ(int i, int i2) {
        return i > i2 ? i : i2;
    }

    public static final float ॱ(float f, float f2) {
        return f < f2 ? f : f2;
    }

    public static final float ˎ(float f, float f2, float f3) {
        return ˎ(f2, ॱ(f, f3));
    }

    public static final float ʼ(float f) {
        return (float) StrictMath.sqrt((double) f);
    }

    public static final float ˎ(fzp o_fzp, fzp o_fzp2) {
        float f = o_fzp.ˊ - o_fzp2.ˊ;
        float f2 = o_fzp.ॱ - o_fzp2.ॱ;
        return (f * f) + (f2 * f2);
    }

    public static final float ॱ(fzp o_fzp, fzp o_fzp2) {
        return ʼ(ˎ(o_fzp, o_fzp2));
    }
}
